import Vue from 'vue'
import Router from 'vue-router'


import home from '@/views/home'
import logn from '@/components/login'
import t404 from '@/views/404'
import t505 from '@/views/505'
import roubalde from '@/views/roubalde'


Vue.use(Router)


//所有权限通用路由表 
//如首页和登录页和一些不用权限的公用页面
export const constantRouterMap = [
  {
    path: '/',
    name: 'login',
    component:logn,
    hidden:true
   },{
    path: '/404',
    name: '404',
    component:  t404,
    hidden:true
   }
]

//实例化vue的时候只挂载constantRouter
export default new Router({
  // hashbang: false,
  // mode: 'history',
  routes: constantRouterMap
});

